<template>
  <a-card :bordered="false">
    <!--    <a-tabs v-model="bizTaskType" @change="handleChangeTabs">-->
    <!--      <a-tab-pane key="0" tab="所有通知单">-->
    <!--      </a-tab-pane>-->
    <!--      <a-tab-pane key="1">-->
    <!--        <span slot="tab">-->
    <!--          <a-badge :count="doTotal">-->
    <!--            待我处理&nbsp;&nbsp;&nbsp;-->
    <!--          </a-badge>-->
    <!--        </span>-->
    <!--      </a-tab-pane>-->
    <!--      <a-tab-pane key="2" tab="我发起的">-->
    <!--        &lt;!&ndash;<span slot="tab">-->
    <!--          <a-badge :count="myTotal">-->
    <!--            我发起的&nbsp;&nbsp;&nbsp;-->
    <!--          </a-badge>-->
    <!--        </span>&ndash;&gt;-->
    <!--      </a-tab-pane>-->
    <!--    </a-tabs>-->
    <!-- 查询区域 -->
    <div class="table-page-search-wrappe">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="单据来源">
              <j-dict-select-tag placeholder="请选择单据来源" @input="handleDocumentSource" v-model="queryParam.permissionType" dictCode="permission_type"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="queryParam.permissionType == 3">
            <a-form-item label="选择部门">
              <J-select-multiple
                placeholder="请选择选择部门"
                :options="getDepartName"
                showId="id"
                v-model="queryParam.deptIds"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24" v-if="queryParam.permissionType == 4">
            <a-form-item label="选择团队">
              <J-select-multiple
                placeholder="请选择选择团队"
                :options="getTeamName"
                showId="id"
                v-model="queryParam.teamIds"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目名称" class="form-item">
              <a-input placeholder="请输入项目名称" v-model="queryParam.projectName"></a-input>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="申请类型">
              <j-dict-select-tag placeholder="请选择项目类型" v-model="queryParam.applyType" dictCode="apply_type"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item
              label="经营团队"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <select-team-input placeholder="请选择经营团队" v-model="queryParam.teamName" :tdlx="1"  :teamType="0"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目承接人">
              <select-user-by-dep placeholder="请选择项目承接人" :multi="false" v-model="queryParam.undertaker" />
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item
              label="签订单位"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <select-Company-input placeholder="请选择签订单位" v-model="queryParam.signUnit"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="业绩归属年度">
              <j-dict-select-tag type="list" v-model="queryParam.year" dictCode="yjgsnd" placeholder="请选择归属年度"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item
              label="业主单位"
              prop="ownerUnit"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <select-customer-input
                commercialType="1"
                v-model="queryParam.ownerUnit"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="项目来源" prop="ownerUnit">
              <j-dict-select-tag
                type="list"
                v-model="queryParam.projectSource"
                dictCode="xmly_type"
                placeholder="请选择项目来源"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="预计合同额(元)" class="form-item">
              <a-input-number
                placeholder="请输入最小值"
                style="width: 47%"
                class="query-group-cust"
                v-model="queryParam.estimatedContractAmountBegin"></a-input-number>
              -
              <a-input-number
                placeholder="请输入最大值"
                style="width: 47%"
                class="query-group-cust"
                v-model="queryParam.estimatedContractAmountEnd"></a-input-number>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="申请人">
              <select-user-by-dep placeholder="请选择项目申请人" :multi="false" v-model="queryParam.proposer" />
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <a-form-item label="申请部门">
              <j-select-depart placeholder="请选择经办部门" v-model="queryParam.proposerDeptId"/>
            </a-form-item>
          </a-col>
          <!-- <template v-if="toggleSearchStatus"></template> -->
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
              <!-- <a @click="handleToggleSearch" style="margin-left: 8px">
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
              </a> -->
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>
    <!-- 查询区域-END -->

    <!-- 操作按钮区域 -->
    <div class="table-operator">
      <a-button @click="handleProjectAdd" type="primary" icon="plus" :disabled="isDisabledAuth('erpOmcProject:add')">
        立项申请
      </a-button>
      <a-button @click="handleProjectChange" type="primary" icon="plus" :disabled="isDisabledAuth('erpOmcProject:add')">
        项目变更申请
      </a-button>
      <!--      <a-button type="primary" icon="download" @click="handleExportXls('立项申请（或变更）信息')"-->
      <!--                :disabled="isDisabledAuth('erpOmcProject:export')">导出-->
      <!--      </a-button>-->
      <!--      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
      <!--                @change="handleImportExcel">-->
      <!--        <a-button type="primary" icon="import" :disabled="isDisabledAuth('erpOmcProject:import')">导入</a-button>-->
      <!--      </a-upload>-->
      <!-- 高级查询区域 -->
      <!--<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
      <a-dropdown v-if="selectedRowKeys.length > 0">
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel" :disabled="isDisabledAuth('erpOmcProject:delete')">
            <a-icon type="delete"/>
            删除
          </a-menu-item>
        </a-menu>
        <a-button style="margin-left: 8px"> 批量操作
          <a-icon type="down"/>
        </a-button>
      </a-dropdown>
      <a-popover title="自定义列" trigger="click" placement="leftBottom">
        <template slot="content">
          <a-checkbox-group @change="onColSettingsChange" v-model="settingColumns" :defaultValue="settingColumns">
            <a-row>
              <template v-for="(item,index) in defColumns">
                <template v-if="item.key!='rowIndex'&& item.dataIndex!='action'">
                  <a-col :span="12">
                    <a-checkbox :value="item.dataIndex">{{ item.title }}</a-checkbox>
                  </a-col>
                </template>
              </template>
            </a-row>
          </a-checkbox-group>
        </template>
        <a style="float: right;">
          <a-icon type="setting" :style="iconStyle"/>
        </a>
      </a-popover>
    </div>

    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
          style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
      </div>

      <a-table
        ref="table"
        size="middle"
        :scroll="{x:scrollX}"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :components="draggableComponent"
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps: (record) => { return { props: { disabled: record.bpmStatus !== '1' } } }}"
        class="j-table-force-nowrap"
        :customRow="customRow"
        @change="handleTableChange">
        <span slot="notify" slot-scope="text, record">
          <a-icon
            title="催办提醒"
            v-if="record.taskUrge"
            theme="twoTone"
            twoToneColor="#eb2f96"
            @click="taskNotifyMe(flowCode,record.id)"
            type="notification"/>
          {{ text }}
        </span>
        <template slot="status" slot-scope="status">
          <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
        </template>
        <template slot="htmlSlot" slot-scope="text">
          <div v-html="text"></div>
        </template>
        <template slot="imgSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
          <img
            v-else
            :src="getImgView(text)"
            height="25px"
            alt=""
            style="max-width:80px;font-size: 12px;font-style: italic;"/>
        </template>
        <template slot="fileSlot" slot-scope="text">
          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
          <a-button
            v-else
            :ghost="true"
            type="primary"
            icon="download"
            size="small"
            @click="downloadFile(text)">
            下载
          </a-button>
        </template>

        <span slot="action" slot-scope="text, record">
          <template v-if="record.bpmStatus === '1'">
            <a-button
              class="ruleButton"
              :ghost="true"
              type="primary"
              icon="edit"
              @click="handleEdit(record)"
              :disabled="isDisabledAuth('erpOmcProject:edit')"
            />
            <a-divider type="vertical"/>
            <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
              <a-button
                class="ruleButton"
                :ghost="true"
                type="primary"
                icon="delete"
                :disabled="isDisabledAuth('erpOmcProject:delete')"/>
            </a-popconfirm>
            <a-divider type="vertical"/>
            <!-- <a-button type="primary" size="small"  @click="beginProcess(record)"
                      :disabled="isDisabledAuth('erpOmcProject:startProcess')">发起流程</a-button> -->
          </template>
          <template v-else-if="showBtn(record.bpmStatus)&&queryParam.bizTaskType=='1'">
            <a-button type="primary" size="small" @click="handleProcess(record)">办理</a-button>
            <a-divider type="vertical"/>
          </template>
          <template v-else-if="queryParam.bizTaskType=='2' && showBtn(record.bpmStatus)">
            <a-button type="primary" size="small" @click="taskNotify(flowCode,record.id)">催办</a-button>
            <a-divider type="vertical"/>
            <a-popconfirm title="确定要作废吗?" @confirm="() => invalidProcess(record)">
              <a-button type="primary" size="small" :disabled="isDisabledAuth('erpOmcProject:invalidProcess')">
                作废流程
              </a-button>
            </a-popconfirm>
            <a-divider type="vertical"/>
          </template>
          <template v-if="record.bpmStatus !== '1'">
            <a-button
              type="primary"
              size="small"
              @click="handleTrack(record)"
              :disabled="isDisabledAuth('erpOmcProject:viewTrack')">审批进度</a-button>
          </template>
        </span>

      </a-table>
    </div>

    <erp-omc-project-apply-modal ref="applyModalForm" @ok="modalFormOk"></erp-omc-project-apply-modal>
    <erp-omc-project-change-modal ref="changeModalForm" @ok="modalFormOk"></erp-omc-project-change-modal>
    <bpm-biz-task-deal-modal
      ref="taskDealModal"
      :path="path"
      :formData="formData"
      @ok="handleOk"></bpm-biz-task-deal-modal>
    <bpm-process-track-modal ref="bpmProcessTrackModal"></bpm-process-track-modal>
    <biz-task-notify-modal ref="taskNotifyModal"></biz-task-notify-modal>
    <biz-task-notify-me-modal ref="taskNotifyMeModal"></biz-task-notify-me-modal>
    <process-config-modal ref="processConfig" @ok="handleSuccess" @close="handleClose"></process-config-modal>
  </a-card>
</template>

<script>

import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgBpmListMixin } from '@/mixins/JeecgBpmListMixin'
import BpmBizTaskDealModal from '@/views/modules/bpmbiz/common/BpmBizTaskDealModal.vue';
import BpmProcessTrackModal from '@/views/modules/bpmbiz/common/BpmProcessTrackModal.vue';
import BizTaskNotifyModal from '@/views/modules/bpmbiz/common/BizTaskNotifyModal.vue';
import BizTaskNotifyMeModal from '@/views/modules/bpmbiz/common/BizTaskNotifyMeModal.vue';
import ErpOmcProjectApplyModal from './modules/ErpOmcProjectApplyModal'
import ErpOmcProjectChangeModal from './modules/ErpOmcProjectChangeModal'
import { DisabledAuthFilterMixin } from '@/mixins/DisabledAuthFilterMixin'
import SelectTeamInput from '@views/scy/components/SelectTeamInput';
import SelectUserByDep from '@/views/scy/components/SelectUserByDep'
import SelectCustomerInput from '@views/scy/components/SelectCustomerInput';
import { getAction, postAction } from '@/api/manage'
import ProcessConfigModal from '@/views/scy/components/ProcessConfigModal'
import SelectCompanyInput from '@/views/scy/components/SelectCompanyInput'

export default {
  name: 'ErpOmcProjectApplyList',
  mixins: [JeecgBpmListMixin, mixinDevice, DisabledAuthFilterMixin],
  components: {
    ErpOmcProjectApplyModal,
    ErpOmcProjectChangeModal,
    BpmBizTaskDealModal,
    BpmProcessTrackModal,
    BizTaskNotifyModal,
    BizTaskNotifyMeModal,
    SelectTeamInput,
    SelectUserByDep,
    SelectCustomerInput,
    ProcessConfigModal,
    SelectCompanyInput
  },
  data() {
    return {
      description: '立项申请信息管理页面',
      queryParam: {
        isOldSystem: '!1' // 老系统项目标识
      },
      // 表头
      columns: [],
      // 列设置
      settingColumns: [],
      // 列定义
      defColumns: [
        {
          title: '序号',
          dataIndex: '',
          key: 'rowIndex',
          width: 60,
          align: 'center',
          // fixed: 'left',
          customRender: function (t, r, index) {
            return parseInt(index) + 1;
          }
        },
        {
          title: '单据编号',
          align: 'center',
          dataIndex: 'projectNo',
          ellipsis: true,
          width: 153
          // fixed: 'left',
          // width: 60,
        },
        {
          title: '项目名称',
          align: 'center',
          dataIndex: 'projectName',
          // fixed: 'left',
          // width: 60,
          ellipsis: true,
          width: 153
        },
        {
          title: '申请类型',
          align: 'center',
          // width:60,
          dataIndex: 'applyType_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '经营团队',
          align: 'center',
          dataIndex: 'teamName_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '项目承接人',
          align: 'center',
          dataIndex: 'undertaker_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '签订单位',
          align: 'center',
          dataIndex: 'signUnit_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '业绩归属年度',
          align: 'center',
          dataIndex: 'year_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '业主单位',
          align: 'center',
          dataIndex: 'ownerUnit_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '项目来源',
          align: 'center',
          dataIndex: 'projectSource_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '预计合同额（元）',
          align: 'center',
          dataIndex: 'estimatedContractAmount',
          ellipsis: true,
          width: 153
        },
        {
          title: '流程状态',
          align: 'center',
          dataIndex: 'bpmStatus_dictText',
          ellipsis: true,
          width: 153
        },
        {
          title: '操作',
          dataIndex: 'action',
          align: 'center',
          fixed: 'right',
          width: 147,
          scopedSlots: {
            filterDropdown: 'filterDropdown',
            filterIcon: 'filterIcon',
            customRender: 'action'
          }
        }
      ],
      url: {
        checkProjectTenderEnd: '/api/erp/omc/project/erpOmcProject/checkProjectTenderEnd',
        list: '/api/erp/omc/project/erpOmcProjectApply/list',
        delete: '/api/erp/omc/project/erpOmcProjectApply/delete',
        deleteBatch: '/api/erp/omc/project/erpOmcProjectApply/deleteBatch',
        exportXlsUrl: '/api/erp/omc/project/erpOmcProjectApply/exportXls',
        importExcelUrl: 'api/erp/omc/project/erpOmcProjectApply/importExcel',
        bizCount: '/api/erp/omc/project/erpOmcProjectApply/bizCount'
      },
      // 代码生成后需手动设置流程编码
      flowCode: 'dev_erp_omc_project_apply_001',
      // 代码生成后需手动设置流程编码
      flowCodeApply: 'dev_erp_omc_project_apply_001',
      formUrlApply: '/erp/omc/project/modules/ErpOmcProjectApplyForm',
      // 代码生成后需手动设置流程编码
      flowCodeChange: 'dev_erp_omc_project_apply_002',
      formUrlChange: '/erp/omc/project/modules/ErpOmcProjectChangeForm',
      formUrl: '/erp/omc/project/modules/ErpOmcProjectApplyForm',
      beanName: 'erpOmcProjectApplyServiceImpl',
      formUrlMobile: '/pages/synergy/erpOmcProjectApplyList',
      dictOptions: {},
      superFieldList: [],
      formDisabled: false,
      lx: 1,
      processId: '1469208959040917506'
    }
  },
  created() {
    this.getSuperFieldList();
  },
  computed: {
    importExcelUrl: function () {
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
  methods: {
    searchReset() {
      this.queryParam = { permissionType: '1' };
      this.queryParam.isOldSystem = '!1' // 老系统项目标识
      this.bizTaskType = null
      this.loadData(1);
    },
    beginProcess(record) {
      let formUrl = this.formUrlApply;
      let flowCode = this.flowCodeApply;
      // 判定流程的类型
      if (record.lx) {
        if (record.lx == 2) {
          formUrl = this.formUrlChange;
          flowCode = this.flowCodeChange;
        }
      }
      var projectId = record.finalProjectId ? record.finalProjectId : record.projectId
      // 校验该预立项是否存在，如果存在则无法提交
      getAction(this.url.checkProjectTenderEnd, { id: projectId, type: record.lx, isPrepareEstablish: record.isPrepareEstablish }).then((res) => {
        if (res.success) {
          this.$refs.processConfig.visible = true
          this.$refs.processConfig.formUrl = formUrl
          this.$refs.processConfig.formUrlMobile = this.formUrlMobile
          this.$refs.processConfig.flowCode = flowCode
          this.$refs.processConfig.edit(record, this.processId, this.beanName)
        } else {
          this.$message.warning(res.message)
          this.handleClose()
        }
      })
    },
    handleTrack(record) {
      let flowCode = this.flowCode;
      if (record.lx) {
        if (record.lx == 2) {
          flowCode = this.flowCodeChange;
        }
      }
      var params = { flowCode: flowCode, dataId: record.id };// 查询条件
      this.$refs.bpmProcessTrackModal.handleTrack(params);
      this.$refs.bpmProcessTrackModal.title = '审批跟踪记录';
    },
    handleSuccess() {
      this.loadData();
      this.$refs.applyModalForm.handleCancel()
      this.$refs.changeModalForm.handleCancel()
      this.onClearSelected();
    },
    // 新增流程取消关闭弹窗刷新页面
    handleClose () {
      this.$refs.applyModalForm.handleCancel()
      this.$refs.changeModalForm.handleCancel()
      this.loadData();
    },
    // 发起流程
    startProcess: function (record) {
      var that = this;
      let formUrl = that.formUrlApply;
      let flowCode = that.flowCodeApply;
      // 判定流程的类型
      if (record.lx) {
        if (record.lx == 2) {
          formUrl = that.formUrlChange;
          flowCode = that.flowCodeChange;
        }
      }
      this.$confirm({
        title: '提示',
        content: '确认提交流程吗?',
        onOk: function () {
          var param = {
            flowCode: flowCode,
            id: record.id,
            formUrl: formUrl,
            formUrlMobile: that.formUrlMobile
          }
          postAction(that.url.startProcess, param).then((res) => {
            if (res.success) {
              that.$message.success(res.message);
              that.loadData();
              that.onClearSelected();
            } else {
              that.$message.warning(res.message);
            }
          }).catch((e) => {
            this.$message.warning('不识别的请求!');
          });
        }
      });
    },
    handleEdit: function (record) {
      if (record.applyType == '1') {
        record.allowChange = true
        this.$refs.applyModalForm.edit(record);
        this.$refs.applyModalForm.title = '编辑';
        this.$refs.applyModalForm.disableSubmit = false;
      } else {
        record.allowChange = true
        this.$refs.changeModalForm.edit(record);
        this.$refs.changeModalForm.title = '编辑';
        this.$refs.changeModalForm.disableSubmit = false;
      }
    },
    handleProjectAdd(type) {
      this.$refs.applyModalForm.title = '立项申请';
      this.$refs.applyModalForm.add();
      this.$refs.applyModalForm.disableSubmit = false;
    },
    handleProjectChange(type) {
      this.$refs.changeModalForm.title = '立项信息变更申请';
      this.$refs.changeModalForm.add();
      this.$refs.changeModalForm.disableSubmit = false;
    },
    initDictConfig() {
    },
    getSuperFieldList() {
      let fieldList = [];
      fieldList.push({ type: 'string', value: 'year', text: '归属年度', dictCode: 'yjgsnd' })
      fieldList.push({ type: 'string', value: 'accountAdmin', text: '台账管理员', dictCode: '' })
      fieldList.push({ type: 'string', value: 'projectAddress', text: '项目地址', dictCode: '' })
      fieldList.push({ type: 'Text', value: 'outline', text: '项目内容概要', dictCode: '' })
      fieldList.push({
        type: 'string',
        value: 'prepareProjectId',
        text: '预立项',
        dictCode: 'erp_omc_prepare_project,mc,id'
      })
      fieldList.push({ type: 'string', value: 'projectName', text: '项目名称', dictCode: '' })
      fieldList.push({ type: 'string', value: 'projectNo', text: '项目编号', dictCode: '' })
      fieldList.push({ type: 'string', value: 'projectType', text: '项目类型', dictCode: 'xmlx_type' })
      fieldList.push({ type: 'string', value: 'ownerUnit', text: '业主单位', dictCode: '' })
      fieldList.push({ type: 'string', value: 'handler', text: '经办人', dictCode: '' })
      fieldList.push({ type: 'string', value: 'handingDepartmernt', text: '经办部门', dictCode: 'departments' })
      fieldList.push({ type: 'string', value: 'teamName', text: '经营团队', dictCode: 'teams' })
      fieldList.push({ type: 'string', value: 'undertaker', text: '承接人', dictCode: '' })
      fieldList.push({ type: 'date', value: 'projectEstablishDate', text: '立项日期' })
      fieldList.push({ type: 'string', value: 'signUnit', text: '签订单位', dictCode: '' })
      fieldList.push({ type: 'BigDecimal', value: 'estimatedContractAmount', text: '预计合同额（元）', dictCode: '' })
      fieldList.push({ type: 'string', value: 'estimatedContractcapitalChineseAmount', text: '预计合同额大写', dictCode: '' })
      fieldList.push({
        type: 'string',
        value: 'isEnvironmentalAssessmentProject',
        text: '是否环评项目',
        dictCode: 'YES_OR_NO'
      })
      fieldList.push({ type: 'string', value: 'contacts', text: '联系人', dictCode: '' })
      fieldList.push({ type: 'string', value: 'contactTel', text: '联系方式', dictCode: '' })
      fieldList.push({ type: 'string', value: 'projectSource', text: '项目来源', dictCode: 'xmly_type' })
      fieldList.push({ type: 'string', value: 'bpmStatus', text: '流程状态', dictCode: 'bpm_status' })
      fieldList.push({ type: 'string', value: 'attachment', text: '相关附件', dictCode: '' })
      fieldList.push({ type: 'string', value: 'isPrepareEstablish', text: '是否预立项', dictCode: 'YES_OR_NO' })
      fieldList.push({ type: 'string', value: 'isBidding', text: '是否招投标', dictCode: 'YES_OR_NO' })
      this.superFieldList = fieldList
    }
  }
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
